JavaScript

A5.ControlBarsetLayout Method

Syntax

A5.ControlBar.setLayout(layout[,animation[,delayRender]])

Arguments

layoutstring

The layout to switch to

animationbooleanstringobject

What animation to perform. To not animate pass in false. If a string is passed in the value of the string is assumed to be the name of the animation to do. If an object is passed in it must conform to the control bar animation object. See A5.ControlBar Animation Object.

delayRenderboolean

Whether or not to delay the refresh of the control bar. This is useful if other code may also refresh the control bar and it is desirable to only have one refresh occur.

Description

Change the layout to the layout passed in.

Example

// assume cbObj is a pointer to an instance of A5.ControlBar
cbObj.setLayout('sub1',{
	type: 'swap-in',
	duration: 600
}); // set the control bar layout to be "sub1" and swap the new control bar layout "in" in .6 seconds